package com.example.consumer.consumer;

import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Component
public class KafkaConsumer {
    @KafkaListener(topics = "yourTopic", groupId = "myGroup"  )
    public void listen(String message) {
        System.out.println("Received Message in group 'myGroup': " + message);
    }
}
